import java.util.LinkedList;
import java.util.Queue;

/**
 * @User: vitobo
 * @Date: 2024-06-22
 * @Description: 队列学习
 */

public class Test {
    public static void main(String[] args) {
        MyQueue myQueue = new MyQueue();
        myQueue.offer(1);
        myQueue.offer(2);
        myQueue.offer(3);
        myQueue.offer(4);
        myQueue.offer(5);
        int x = myQueue.poll();
        System.out.println(x);
        System.out.println(myQueue.peek());
        System.out.println(myQueue.getUsedSize());
    }
}
